import Http from '../http';


export const queryProgressApi = function(data: any) {
    return Http.get('/aiApi/taskStatus', data)
}

export const queryProjectsApi = function(data: any) {
    return Http.get('/aiApi/getProjects', data)
}

export const queryProjectConfigApi = function(data: any) {
    return Http.get('/aiApi/getExampleConfig', data)
}

export const submitConfigApi = function(data: any) {
    return Http.post('/aiApi/addConfig', data,
        { headers: { 'Content-Type': 'application/json;charset=UTF-8'}})
}

export const submitTaskApi = function(data: any) {
    return Http.post('/aiApi/batch_aigenerate', data,
        { headers: { 'Content-Type': 'application/json;charset=UTF-8'}})
}

export const checkCaseByCheckCode = function(data: any) {
    return Http.post('/aiApi/checkCaseByCheckCode', data)
}

export const checkCaseByParent = function(data: any) {
    return Http.post('/aiApi/checkCaseByParent', data)
}


export const checkCaseByReportCode = function(data: any) {
    return Http.post('/aiApi/checkCaseByReportCode', data)
}


export const manualCaseByExcel = function(data: any) {
    return Http.post('/aiApi/manualCaseByExcel', data)
}

export const uploadAndParseCaseFile = function(data: any) {
    return Http.post('/aiApi/uploadAndParseCaseFile', data)
}

export const riskItem = function(data: any) {
    return Http.post('/aiApi/riskItem', data)
}

export const riskItemByModule = function(data: any) {
    return Http.post('/aiApi/riskItemByModule', data)
}

export const indicatorByCode = function(data: any) {
    return Http.post('/aiApi/indicatorByCode', data)
}

export const attributeByCode = function(data: any) {
    return Http.post('/aiApi/attributeByCode', data)
}

export const uploadAndParseLimitCaseFile = function(data: any) {
    return Http.post('/aiApi/uploadAndParseLimitCaseFile', data)
}